package domain

import (
	"regexp"
)

const (
	UpdateinfoRootDir = "earlyupdateinfo/"
	NoticeTypeCVE     = "cve"
	NoticeTypeBug     = "bug"
	CveUrlPrefix      = "https://nvd.nist.gov/vuln/detail/"
	PkgUrl            = "https://repo.openeuler.org/%s/update/%s/Packages/%s"
	ScriptPath        = "/opt/app/epoch.sh"
)

var (
	Severity = map[string]string{
		"critical": "Critical",
		"high":     "Important",
		"medium":   "Moderate",
		"low":      "Low",
	}

	Num = regexp.MustCompile(`\d+`)
)

type UpdateParam struct {
	Sb          *SecurityBulletin
	Branch      string
	DownloadBys []byte
}
